<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        //setInerval()重复调用一个函数，每隔这个时间，
        // 就调用一次回调函数

        setInterval(function(){
            console.log('123456');
        },1000);
    </script>
</body>
</html>